
<table class="report">
	<caption><?php echo ($user->firstName." ".$user->lastName); ?>'s Points</caption>
	<thead>
		<tr>
                        
                    <td class="tdreport"></td>
			<?php 
                            foreach($tasks as $task){
                            echo "<th scope='col'>$task->name</th>";
                            }
                        ?>
		</tr>
	</thead>
	<tbody>
		<tr>
			<th scope="row">Total Point</th>
			<?php
                            $totalpoints=0;
                            foreach($tasks as $task){
                            $totalpoints += $task->points*$task->ratio;
                            echo "<td>{$totalpoints}</td>";
                            }
                        ?>
		</tr>
	</tbody>
</table>